package com.newtouch.cq.controllerlog.business.controller;


import com.newtouch.cq.controllerlog.business.entity.SysLog;
import com.newtouch.cq.controllerlog.business.model.dto.SysLogPageDto;
import com.newtouch.cq.controllerlog.business.service.ISysLogService;
import com.newtouch.cq.lang.annotation.NoLog;
import com.newtouch.cq.lang.result.MccPageResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统日志表 前端控制器
 * </p>
 *
 * @author Alex
 * @since 2021-09-03
 */
@RestController
@RequestMapping("/sys/logs")
@Api(tags = "系统日志相关接口")
public class SysLogController {

    @Autowired
    private ISysLogService logService;

    /**
     * 用户分页查询
     * @param dto
     * @return
     */
    @NoLog
    @GetMapping("pageList")
    @ApiOperation("日志分页查询")
    public MccPageResult<SysLog> pageList(SysLogPageDto dto) {
        return logService.pageList(dto);
    }
}
